home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / amos / amsls496.lzh / AMOSLIST / 000073_amos-request@svcs1.digex.net_Wed Apr 24 11:41:29 1996.msg < prev    next >
Internet Message Format  |  1996-05-01  |  4KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id LAA09089;  for <mcox@access.digex.net> ; Wed, 24 Apr 1996 11:41:27 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id IAA24314 for amos-out; Wed, 24 Apr 1996 08:06:36 -0400
  3. Received: from mail1.access.digex.net (mail1-2.access.digex.net [204.91.197.3]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id IAA24311 for <amos-list@svcs1.digex.net>; Wed, 24 Apr 1996 08:06:30 -0400
  4. Received: from conan.eds-ms.com (conan.eds-ms.com [204.240.136.11]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id IAA05649;  for <amos-list@access.digex.net> ; Wed, 24 Apr 1996 08:06:29 -0400
  5. Received: from tc6.chem.ruu.nl by conan.eds-ms.com (5.x/SMI-SVR4)
  6.     id AA04863; Wed, 24 Apr 1996 08:06:37 -0400
  7. Message-Id: <9604241206.AA04863@conan.eds-ms.com>
  8. Received: by tc6.chem.ruu.nl
  9.     (1.37.109.4/16.2) id AA24444; Wed, 24 Apr 96 14:13:21 +0200
  10. Subject: Re: LDos problems
  11. To: cosmo@sci.fi
  12. Date: Wed, 24 Apr 96 14:13:21 METDST
  13. Cc: amos-list@conan.eds-ms.com (Discussion list)
  14. In-Reply-To: <yam6687.1336857.506295488@mail.sci.fi>; from "Ville Ranki" at Apr 23, 96 10:16 pm
  15. From: m.g.d.wehrens@chem.ruu.nl (Martijn Wehrens)
  16. Organisation: Utrecht University
  17. Reply: m.g.d.wehrens@chem.ruu.nl
  18. Reply-To: m.g.d.wehrens@chem.ruu.nl
  19. Mailer: Elm [revision: 70.85]
  20. Status: RO
  21. X-Status: 
  22.  
  23. About the dir-command
  24. > LDos would have the excellent dir commands i'd need, but they seem to 
  25. If the dir-command is the only command you need from Ldos, you 
  26. may want to implement that one via amos (with doscalls)
  27. In amigados (most dos-es anyway) you create a 'lock' on your
  28. desired directory, if it fails, it  returns null.
  29. Then you may do an 'examine' and an 'exnext'
  30.  
  31. I suppose this does ring a bell. If you think this is an
  32. option then I will dig out the directory-reading program
  33. which simply gives you the 'fileinfoblock' for every
  34. file which contains all the info you want.
  35. Long ago, someone already posted it (Chris Hodges):
  36.  
  37.  STRUCTURE FileInfoBlock,0
  38.    LONG    fib_DiskKey      ;
  39.    LONG    fib_DirEntryType ; Type of Directory.
  40.                       ; If < 0, then a plain file.
  41.                          ; If > 0 a directory
  42.    STRUCT fib_FileName,108  ; Null terminated. Max 30 chars used for now
  43.          (other filesystems could of course use more or 
  44.           less -MSDUMB- characters)
  45.    LONG   fib_Protection    ; bit mask of protection, rwxd are 3-0.
  46.    LONG   fib_EntryType
  47.    LONG   fib_Size          ; Number of bytes in file
  48.         (note that a LONG is 32bit thus filesize is restricted to 2G !!)
  49.         (2 G may seem a lot, but remember that nowadays people do video
  50.           on their machine...)
  51.    LONG   fib_NumBlocks     ; Number of blocks in file
  52.    STRUCT fib_DateStamp,ds_SIZEOF ; Date file last changed.
  53.    STRUCT fib_Comment,80    ; Null terminated. Comment associated with file
  54.    ; Note: the following fields are not supported by all filesystems.
  55.    ; They should be initialized to 0 sending an ACTION_EXAMINE packet.
  56.    ; When Examine() is called, these are set to 0 for you.
  57.    ; AllocDosObject() also initializes them to 0.
  58.    UWORD  fib_OwnerUID      ; owner's UID
  59.    UWORD  fib_OwnerGID      ; owner's GID
  60.  
  61.    STRUCT fib_Reserved,32
  62.    LABEL  fib_SIZEOF        ; FileInfoBlock
  63.  
  64.  
  65. So, if this contains all you want (eg, the filenote) then you
  66. may pass over Ldos altogether for this particulat part.
  67.  
  68.  
  69. ---------------------------------------------------------------
  70. Martijn Wehrens, Theoretical Chemistry Group Utrecht University
  71. email m.g.d.wehrens@chem.ruu.nl          
  72. ---------------------------------------------------------------